package com.lemon.exam.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.relational.core.mapping.Column;

import java.time.LocalDateTime;

/**
 * 试卷表 视图对象
 *
 * @author Lemon
 * @since 2025/05/11 13:47:13
 */
@Getter
@Setter
@ToString
@Schema(name = "试卷表 - 视图对象")
public class PaperVO {
    @Column(value = "id")
    private Long id;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "考试说明")
    private String remark;

    @Schema(description = "开始考试时间")
    private LocalDateTime startTime;

    @Schema(description = "结束考试时间")
    private LocalDateTime endTime;

    @Schema(description = "时长（分钟）")
    private Integer duration;

    @Schema(description = "及格分数")
    private Double passScore;

    @Schema(description = "试卷总分")
    private Double totalScore;

    @Schema(description = "是否允许查看答案 1是 0否")
    private Integer lookAnswer;

    @Schema(description = "是否打乱试题 1是 0否")
    private Integer upset;

    @Schema(description = "年级[班级]")
    private String gradeClassName;

    @Schema(description = "用户得分")
    private Double userScore;
}
